<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图书登记</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="myJS.js"></script>
</head>
<body>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="col-md-12 column">
                <ul class="breadcrumb">
                    <li>
                        <a href="login.html">登录页面</a>
                    </li>
                    <li>
                        <a href="booklist.html">图书管理主页</a>
                    </li>
                    <li class="active">
                        图书登记
                    </li>
                </ul>
            </div>
            <div class="row clearfix">
                <div class="col-md-12 column">
                    <h1 class="text-center" style="color: cornflowerblue">
                        图书信息登记
                    </h1>
                </div>
            </div>
            <br/><br/>
            <form role="form" >
                <div class="form-group">
                    <label for="book_name">请输入图书名称</label><input type="text" class="form-control" id="book_name" />
                </div>
                <div class="form-group">
                    <label for="author">请输入图书作者</label><input type="text" class="form-control" id="author" />
                </div>
                <div class="form-group">
                    <label for="publish_press">请输入图书出版社名称</label><input type="text" class="form-control" id="publish_press" />
                </div>
                <div class="form-group">
                    <label>请输入图书出版日期:</label><br/>
                    <label for="publish_year">年:</label><input type="text" class="form-control" id="publish_year" />
                    <span class="help-block">例：2001</span>
                    <label for="publish_month">月：</label><input type="text" class="form-control" id="publish_month" />
                    <span class="help-block">例：6</span>
                </div>
                <div class="form-group">
                    <label for="store_number">请输入库存数量</label><input type="text" class="form-control" id="store_number" />
                </div>
                <p class="help-block">
                    每项必填
                </p>
                <br/>
                <div class="form-group">
                    <label for="image_file">点击上传图书图片</label><input type="file" id="image_file" />
                    <img alt="无数据" height="100%" width="100%" src=""/>
                    <script>document.getElementById("image_file").onclick=function(){load_img()};</script>
                </div>

                <button type="submit_button" class="btn btn-primary" id="submit_button">提交</button>
                <script>document.getElementById("submit_button").onclick=function(){submit()};</script>
            </form>
        </div>
    </div>
</div>
</body>
</html>